/*
 * @Description:
 * @Author: fhw
 * @Date: 2022-08-02 14:40:01
 */
import { forwardRef, Module } from '@nestjs/common'
import { ChatUserGroupService } from './chat_user_group.service'
import { ChatUserGroupController } from './chat_user_group.controller'
import { TypeOrmModule } from '@nestjs/typeorm'
import { ChatUserModule } from 'src/chat_user/chat_user.module'
import { ChatUserGroup } from './entities/chat_user_group.entity'
import { CreateChatUserGroupDto } from './dto/chat_user_group.dto'
import { ChatUser } from 'src/chat_user/entities/chat_user.entity'
import { GroupChatModule } from '../group-chat/group-chat.module'
import { SysMessageModule } from 'src/sys_message/sys_message.module'
export interface CreateChatUserGroupParams extends CreateChatUserGroupDto {
  chatUser: ChatUser
}
@Module({
  imports: [
    TypeOrmModule.forFeature([ChatUserGroup]),
    forwardRef(() => ChatUserModule),
    forwardRef(() => GroupChatModule),
    forwardRef(() => SysMessageModule)
  ],
  controllers: [ChatUserGroupController],
  providers: [ChatUserGroupService],
  exports: [ChatUserGroupService]
})
export class ChatUserGroupModule { }
